package com.timebank.score.mapper;

import com.timebank.score.pojo.entity.ScoreTaskType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 积分任务类型
 * @author shiliuyinzhen
 */
@Mapper
public interface ScoreTaskTypeMapper {

    /**
     * 查询积分任务类型列表
     * @param scoreTaskType
     * @return
     */
    List<ScoreTaskType> getScoreTaskTypeList(ScoreTaskType scoreTaskType);

    /**
     * 新增积分任务类型
     * @param scoreTaskType
     * @return
     */
    int addScoreTaskType(ScoreTaskType scoreTaskType);

    /**
     * 修改积分任务类型
     * @param scoreTaskType
     * @return
     */
    int updateScoreTaskType(ScoreTaskType scoreTaskType);

    /**
     * 批量删除积分任务类型
     * @param typeIds
     * @return
     */
    int batchDeleteScoreTaskType(@Param("typeIds") Integer[] typeIds);

    /**
     * 查询积分任务类型
     * @param scoreTaskType
     * @return
     */
    ScoreTaskType getScoreTaskType(ScoreTaskType scoreTaskType);
}
